﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace AllPurposeCard
{
    public partial class Login : Form
    {
        public Login()
        {
            InitializeComponent();
        }

        private void Login_Load(object sender, EventArgs e)
        {
            
        }

        //判断登录账号密码是否正确
        private void Enter_Click(object sender, EventArgs e)
        {
            string ZH = this.UserLoginID.Text.Trim();
            string MM = this.UserPassWord.Text;
            bool result = Program.CheckLogin(ZH,MM);
            if (result)
            {
                yixin.entirety Mp = new yixin.entirety();
                this.Hide();
                Mp.Show();
                //XuJian.Expenditure Ex = new XuJian.Expenditure();
                //this.Hide();
                //Ex.Show();
            }
            else
            {
                MessageBox.Show("账号密码错误", "提示", MessageBoxButtons.OK);
            }
        }

        private void Login_FormClosed(object sender, FormClosedEventArgs e)
        {
        }

        private void Reset_Click(object sender, EventArgs e)
        {
            UserLoginID.Text = "";
            UserPassWord.Text = "";
        }

        private void Login_FormClosing(object sender, FormClosingEventArgs e)
        {

        }

       

    }
}
